
<!-- <?php echo $_CTL_ID; ?> -->

<div id="<?php echo $_CTL_ID; ?>" class="box">
  <h4 class="blue">开源项目分类</h4>

  <div class="box-cnt">
    <p>
      <?php foreach ($categories as $cat): ?>
      <a href="<?php echo h($_ctx->url('projects/index', array('type' => 'cat', 'key' => $cat->slug))); ?>"><?php echo h($cat->name); ?></a>
      <?php endforeach; ?>
    </p>

    <p>
      <a href="<?php echo $_ctx->url('projects/index'); ?>">查看全部类别的开源项目...</a>
    </p>
  </div>
</div>

<!-- /<?php echo $_CTL_ID; ?> -->


